package com.qigao.mall.web.vo.admin.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @Date:2017/12/25 0025 14:46
 * @Author lu.dong
 * @Description：
 **/
@Getter
@Setter
@ToString
@ApiModel(value = "角色操作实体 SysResourceCreateVo")
public class SysRoleModiVo {
    @NotEmpty(message = "主键ID不能为空")
    @ApiModelProperty(value = "主键ID", required = true)
    private String id;
    @NotEmpty(message = "角色代码不能为空")
    @Length(min = 1, max = 32, message = "角色代码长度不能超过32")
    @ApiModelProperty(value = "角色代码", required = true)
    private String roleCode;
    @NotEmpty(message = "角色名称不能为空")
    @Length(min = 1, max = 64, message = "角色名称长度不能超过64")
    @ApiModelProperty(value = "角色名称", required = true)
    private String roleName;
    @Length(max = 1, message = "状态长度不能超过1 默认为Y ")
    @ApiModelProperty(value = "状态", required = false)
    private String status;
    @Length(max = 1, message = "是否超级角色长度不能超过1 默认为N ")
    @ApiModelProperty(value = "是否超级角色", required = false)
    private String ifAdmin;
    @Length(max = 64, message = "备注长度不能超过64")
    @ApiModelProperty(value = "备注", required = false)
    private String memo;

}
